<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>排列五</title>
    <script src="./vue.min.js"></script>
    <style>
        body{background-color: #282923;color: #F8F8F2;font-size: 20px;margin: 0px;padding: 0px;}
        #app{padding: 10px;border: 1px solid #F8F8F2;display: inline-block;width: 1408px;}
        .container{border: 1px solid #F8F8F2;margin: 10px;padding: 10px;width: 310px;float: left;}
        .input{background-color: #282923;color: #F8F8F2;border: none;outline: none;font-size: 21px;width: 120px;}
        .input_exit{background-color: #282923;border: none;border-bottom: 1px solid #F8F8F2;color: #F8F8F2;font-size: 20px;width: 135px;outline: none;}
        .span{width: 122px;display: inline-block;}
        .result{background-color: #282923;border: none;border-bottom: 1px solid #F8F8F2;outline: none;color: #F8F8F2;font-size: 30px;width: 305px;}
    </style>
</head>
<body>
    <div id="app">
        <p style="margin: 30px 0;padding: 0px;font-size: 30px;text-align: center;">排列五&emsp;第<input type="text" value="20000" maxlength="5"  style="background-color: #282923;color:#F8F8F2;font-size:30px;width:110px;border:none;border-bottom:1px solid #F8F8F2;text-align: center;outline: none;">期</p>
        <div class="container">
            <p style="text-align: center;margin: 0px 0px 10px 0px;padding: 0px;">头位</p>
            1---<input type="text" class="input" maxlength="10" v-model="tou_one" />&ensp;<span>{{tou_one_two_split1}}</span>--<span>{{tou_one_two_result1}}</span><br>
            2---<input type="text" class="input" maxlength="10" v-model="tou_two" />&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            3---<input type="text" class="input" maxlength="10" v-model="tou_three" />&ensp;<span>{{tou_three_two_split1}}</span>--<span>{{tou_three_two_result1}}</span><br>
            <br>
            1---<span class="span">{{tou_one}}</span>&ensp;<span>{{tou_one_three_split2}}</span>--<span>{{tou_one_three_result2}}</span><br>
            3---<span class="span">{{tou_three}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            2---<span class="span">{{tou_two}}</span>&ensp;<span>{{tou_two_three_split2}}</span>--<span>{{tou_two_three_result2}}</span><br>
            <br>
            2---<span class="span">{{tou_two}}</span>&ensp;<span>{{tou_two_one_split3}}</span>--<span>{{tou_two_one_result3}}</span><br>
            1---<span class="span">{{tou_one}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            3---<span class="span">{{tou_three}}</span>&ensp;<span>{{tou_three_one_split3}}</span>--<span>{{tou_three_one_result3}}</span><br>
            <br>
            2---<span class="span">{{tou_two}}</span>&ensp;<span>{{tou_two_three_split4}}</span>--<span>{{tou_two_three_result4}}</span><br>
            3---<span class="span">{{tou_three}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            1---<span class="span">{{tou_one}}</span>&ensp;<span>{{tou_one_three_split4}}</span>--<span>{{tou_one_three_result4}}</span><br>
            <br>
            3---<span class="span">{{tou_three}}</span>&ensp;<span>{{tou_three_one_split5}}</span>--<span>{{tou_three_one_result5}}</span><br>
            1---<span class="span">{{tou_one}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            2---<span class="span">{{tou_two}}</span>&ensp;<span>{{tou_two_one_split5}}</span>--<span>{{tou_two_one_result5}}</span><br>
            <br>
            3---<span class="span">{{tou_three}}</span>&ensp;<span>{{tou_three_two_split6}}</span>--<span>{{tou_three_two_result6}}</span><br>
            2---<span class="span">{{tou_two}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            1---<span class="span">{{tou_one}}</span>&ensp;<span>{{tou_one_two_split6}}</span>--<span>{{tou_one_two_result6}}</span><br>
            <br>
            <input type="text" class="result" maxlength="18"><br>
            <input type="text" class="result" maxlength="18">
        </div>
        <div class="container">
            <p style="text-align: center;margin: 0px 0px 10px 0px;padding: 0px;">百位</p>
            1---<input type="text" class="input" maxlength="10" v-model="bai_one" />&ensp;<span>{{bai_one_two_split1}}</span>--<span>{{bai_one_two_result1}}</span><br>
            2---<input type="text" class="input" maxlength="10" v-model="bai_two" />&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            3---<input type="text" class="input" maxlength="10" v-model="bai_three" />&ensp;<span>{{bai_three_two_split1}}</span>--<span>{{bai_three_two_result1}}</span><br>
            <br>
            1---<span class="span">{{bai_one}}</span>&ensp;<span>{{bai_one_three_split2}}</span>--<span>{{bai_one_three_result2}}</span><br>
            3---<span class="span">{{bai_three}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            2---<span class="span">{{bai_two}}</span>&ensp;<span>{{bai_two_three_split2}}</span>--<span>{{bai_two_three_result2}}</span><br>
            <br>
            2---<span class="span">{{bai_two}}</span>&ensp;<span>{{bai_two_one_split3}}</span>--<span>{{bai_two_one_result3}}</span><br>
            1---<span class="span">{{bai_one}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            3---<span class="span">{{bai_three}}</span>&ensp;<span>{{bai_three_one_split3}}</span>--<span>{{bai_three_one_result3}}</span><br>
            <br>
            2---<span class="span">{{bai_two}}</span>&ensp;<span>{{bai_two_three_split4}}</span>--<span>{{bai_two_three_result4}}</span><br>
            3---<span class="span">{{bai_three}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            1---<span class="span">{{bai_one}}</span>&ensp;<span>{{bai_one_three_split4}}</span>--<span>{{bai_one_three_result4}}</span><br>
            <br>
            3---<span class="span">{{bai_three}}</span>&ensp;<span>{{bai_three_one_split5}}</span>--<span>{{bai_three_one_result5}}</span><br>
            1---<span class="span">{{bai_one}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            2---<span class="span">{{bai_two}}</span>&ensp;<span>{{bai_two_one_split5}}</span>--<span>{{bai_two_one_result5}}</span><br>
            <br>
            3---<span class="span">{{bai_three}}</span>&ensp;<span>{{bai_three_two_split6}}</span>--<span>{{bai_three_two_result6}}</span><br>
            2---<span class="span">{{bai_two}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            1---<span class="span">{{bai_one}}</span>&ensp;<span>{{bai_one_two_split6}}</span>--<span>{{bai_one_two_result6}}</span><br>
            <br>
            <input type="text" class="result" maxlength="18"><br>
            <input type="text" class="result" maxlength="18">
        </div>
        <div class="container">
            <p style="text-align: center;margin: 0px 0px 10px 0px;padding: 0px;">十位</p>
            1---<input type="text" class="input" maxlength="10" v-model="shi_one" />&ensp;<span>{{shi_one_two_split1}}</span>--<span>{{shi_one_two_result1}}</span><br>
            2---<input type="text" class="input" maxlength="10" v-model="shi_two" />&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            3---<input type="text" class="input" maxlength="10" v-model="shi_three" />&ensp;<span>{{shi_three_two_split1}}</span>--<span>{{shi_three_two_result1}}</span><br>
            <br>
            1---<span class="span">{{shi_one}}</span>&ensp;<span>{{shi_one_three_split2}}</span>--<span>{{shi_one_three_result2}}</span><br>
            3---<span class="span">{{shi_three}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            2---<span class="span">{{shi_two}}</span>&ensp;<span>{{shi_two_three_split2}}</span>--<span>{{shi_two_three_result2}}</span><br>
            <br>
            2---<span class="span">{{shi_two}}</span>&ensp;<span>{{shi_two_one_split3}}</span>--<span>{{shi_two_one_result3}}</span><br>
            1---<span class="span">{{shi_one}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            3---<span class="span">{{shi_three}}</span>&ensp;<span>{{shi_three_one_split3}}</span>--<span>{{shi_three_one_result3}}</span><br>
            <br>
            2---<span class="span">{{shi_two}}</span>&ensp;<span>{{shi_two_three_split4}}</span>--<span>{{shi_two_three_result4}}</span><br>
            3---<span class="span">{{shi_three}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            1---<span class="span">{{shi_one}}</span>&ensp;<span>{{shi_one_three_split4}}</span>--<span>{{shi_one_three_result4}}</span><br>
            <br>
            3---<span class="span">{{shi_three}}</span>&ensp;<span>{{shi_three_one_split5}}</span>--<span>{{shi_three_one_result5}}</span><br>
            1---<span class="span">{{shi_one}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            2---<span class="span">{{shi_two}}</span>&ensp;<span>{{shi_two_one_split5}}</span>--<span>{{shi_two_one_result5}}</span><br>
            <br>
            3---<span class="span">{{shi_three}}</span>&ensp;<span>{{shi_three_two_split6}}</span>--<span>{{shi_three_two_result6}}</span><br>
            2---<span class="span">{{shi_two}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            1---<span class="span">{{shi_one}}</span>&ensp;<span>{{shi_one_two_split6}}</span>--<span>{{shi_one_two_result6}}</span><br>
            <br>
            <input type="text" class="result" maxlength="18"><br>
            <input type="text" class="result" maxlength="18">
        </div>
        <div class="container">
            <p style="text-align: center;margin: 0px 0px 10px 0px;padding: 0px;">尾位</p>
            1---<input type="text" class="input" maxlength="10" v-model="wei_one" />&ensp;<span>{{wei_one_two_split1}}</span>--<span>{{wei_one_two_result1}}</span><br>
            2---<input type="text" class="input" maxlength="10" v-model="wei_two" />&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            3---<input type="text" class="input" maxlength="10" v-model="wei_three" />&ensp;<span>{{wei_three_two_split1}}</span>--<span>{{wei_three_two_result1}}</span><br>
            <br>
            1---<span class="span">{{wei_one}}</span>&ensp;<span>{{wei_one_three_split2}}</span>--<span>{{wei_one_three_result2}}</span><br>
            3---<span class="span">{{wei_three}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            2---<span class="span">{{wei_two}}</span>&ensp;<span>{{wei_two_three_split2}}</span>--<span>{{wei_two_three_result2}}</span><br>
            <br>
            2---<span class="span">{{wei_two}}</span>&ensp;<span>{{wei_two_one_split3}}</span>--<span>{{wei_two_one_result3}}</span><br>
            1---<span class="span">{{wei_one}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            3---<span class="span">{{wei_three}}</span>&ensp;<span>{{wei_three_one_split3}}</span>--<span>{{wei_three_one_result3}}</span><br>
            <br>
            2---<span class="span">{{wei_two}}</span>&ensp;<span>{{wei_two_three_split4}}</span>--<span>{{wei_two_three_result4}}</span><br>
            3---<span class="span">{{wei_three}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            1---<span class="span">{{wei_one}}</span>&ensp;<span>{{wei_one_three_split4}}</span>--<span>{{wei_one_three_result4}}</span><br>
            <br>
            3---<span class="span">{{wei_three}}</span>&ensp;<span>{{wei_three_one_split5}}</span>--<span>{{wei_three_one_result5}}</span><br>
            1---<span class="span">{{wei_one}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            2---<span class="span">{{wei_two}}</span>&ensp;<span>{{wei_two_one_split5}}</span>--<span>{{wei_two_one_result5}}</span><br>
            <br>
            3---<span class="span">{{wei_three}}</span>&ensp;<span>{{wei_three_two_split6}}</span>--<span>{{wei_three_two_result6}}</span><br>
            2---<span class="span">{{wei_two}}</span>&ensp;<input type="text" class="input_exit" maxlength="12"><br>
            1---<span class="span">{{wei_one}}</span>&ensp;<span>{{wei_one_two_split6}}</span>--<span>{{wei_one_two_result6}}</span><br>
            <br>
            <input type="text" class="result" maxlength="18"><br>
            <input type="text" class="result" maxlength="18">
        </div>
    </div>
    <script>
        function split_all(str1,str2,num1,num2){
            var arr = str1 + str2.slice(num1,num2);
            return arr.split("").sort().join("").replace(/(.)(?=.*\1)/g,"")
        }
        function result_all(str1,str2,num1,num2){
            var num = '0123456789';
            var arr = str1 + str2.slice(num1,num2);
            var num_result = num.split("");
            var arr_result = arr.replace(/(.)(?=.*\1)/g,"").split("");
            function getArrDifference(arr1, arr2) {return arr1.concat(arr2).filter(function(v, i, arr) {return arr.indexOf(v) === arr.lastIndexOf(v)})}
            var result = getArrDifference(num_result,arr_result);
            return result.sort().join("")
        }
        new Vue({
            el: '#app',
            data: {tou_one: '',tou_two: '',tou_three: '',bai_one: '',bai_two: '',bai_three: '',shi_one: '',shi_two: '',shi_three: '',wei_one: '',wei_two: '',wei_three: ''},
            computed: {tou_one_two_split1: function(){return split_all(this.tou_one,this.tou_two,0,5)},tou_three_two_split1: function(){return split_all(this.tou_three,this.tou_two,5,10)},tou_one_three_split2: function(){return split_all(this.tou_one,this.tou_three,0,5)},tou_two_three_split2: function(){return split_all(this.tou_two,this.tou_three,5,10)},tou_two_one_split3: function(){return split_all(this.tou_two,this.tou_one,0,5)},tou_three_one_split3: function(){return split_all(this.tou_three,this.tou_one,5,10)},tou_two_three_split4: function(){return split_all(this.tou_two,this.tou_three,0,5)},tou_one_three_split4: function(){return split_all(this.tou_one,this.tou_three,5,10)},tou_three_one_split5: function(){return split_all(this.tou_three,this.tou_one,0,5)},tou_two_one_split5: function(){return split_all(this.tou_two,this.tou_one,5,10)},tou_three_two_split6: function(){return split_all(this.tou_three,this.tou_two,0,5)},tou_one_two_split6: function(){return split_all(this.tou_one,this.tou_two,5,10)},tou_one_two_result1: function(){return result_all(this.tou_one,this.tou_two,0,5)},tou_three_two_result1: function(){return result_all(this.tou_three,this.tou_two,5,10)},tou_one_three_result2: function(){return result_all(this.tou_one,this.tou_three,0,5)},tou_two_three_result2: function(){return result_all(this.tou_two,this.tou_three,5,10)},tou_two_one_result3: function(){return result_all(this.tou_two,this.tou_one,0,5)},tou_three_one_result3: function(){return result_all(this.tou_three,this.tou_one,5,10)},tou_two_three_result4: function(){return result_all(this.tou_two,this.tou_three,0,5)},tou_one_three_result4: function(){return result_all(this.tou_one,this.tou_three,5,10)},tou_three_one_result5: function(){return result_all(this.tou_three,this.tou_one,0,5)},tou_two_one_result5: function(){return result_all(this.tou_two,this.tou_one,5,10)},tou_three_two_result6: function(){return result_all(this.tou_three,this.tou_two,0,5)},tou_one_two_result6: function(){return result_all(this.tou_one,this.tou_two,5,10)},bai_one_two_split1: function(){return split_all(this.bai_one,this.bai_two,0,5)},bai_three_two_split1: function(){return split_all(this.bai_three,this.bai_two,5,10)},bai_one_three_split2: function(){return split_all(this.bai_one,this.bai_three,0,5)},bai_two_three_split2: function(){return split_all(this.bai_two,this.bai_three,5,10)},bai_two_one_split3: function(){return split_all(this.bai_two,this.bai_one,0,5)},bai_three_one_split3: function(){return split_all(this.bai_three,this.bai_one,5,10)},bai_two_three_split4: function(){return split_all(this.bai_two,this.bai_three,0,5)},bai_one_three_split4: function(){return split_all(this.bai_one,this.bai_three,5,10)},bai_three_one_split5: function(){return split_all(this.bai_three,this.bai_one,0,5)},bai_two_one_split5: function(){return split_all(this.bai_two,this.bai_one,5,10)},bai_three_two_split6: function(){return split_all(this.bai_three,this.bai_two,0,5)},bai_one_two_split6: function(){return split_all(this.bai_one,this.bai_two,5,10)},bai_one_two_result1: function(){return result_all(this.bai_one,this.bai_two,0,5)},bai_three_two_result1: function(){return result_all(this.bai_three,this.bai_two,5,10)},bai_one_three_result2: function(){return result_all(this.bai_one,this.bai_three,0,5)},bai_two_three_result2: function(){return result_all(this.bai_two,this.bai_three,5,10)},bai_two_one_result3: function(){return result_all(this.bai_two,this.bai_one,0,5)},bai_three_one_result3: function(){return result_all(this.bai_three,this.bai_one,5,10)},bai_two_three_result4: function(){return result_all(this.bai_two,this.bai_three,0,5)},bai_one_three_result4: function(){return result_all(this.bai_one,this.bai_three,5,10)},bai_three_one_result5: function(){return result_all(this.bai_three,this.bai_one,0,5)},bai_two_one_result5: function(){return result_all(this.bai_two,this.bai_one,5,10)},bai_three_two_result6: function(){return result_all(this.bai_three,this.bai_two,0,5)},bai_one_two_result6: function(){return result_all(this.bai_one,this.bai_two,5,10)},shi_one_two_split1: function(){return split_all(this.shi_one,this.shi_two,0,5)},shi_three_two_split1: function(){return split_all(this.shi_three,this.shi_two,5,10)},shi_one_three_split2: function(){return split_all(this.shi_one,this.shi_three,0,5)},shi_two_three_split2: function(){return split_all(this.shi_two,this.shi_three,5,10)},shi_two_one_split3: function(){return split_all(this.shi_two,this.shi_one,0,5)},shi_three_one_split3: function(){return split_all(this.shi_three,this.shi_one,5,10)},shi_two_three_split4: function(){return split_all(this.shi_two,this.shi_three,0,5)},shi_one_three_split4: function(){return split_all(this.shi_one,this.shi_three,5,10)},shi_three_one_split5: function(){return split_all(this.shi_three,this.shi_one,0,5)},shi_two_one_split5: function(){return split_all(this.shi_two,this.shi_one,5,10)},shi_three_two_split6: function(){return split_all(this.shi_three,this.shi_two,0,5)},shi_one_two_split6: function(){return split_all(this.shi_one,this.shi_two,5,10)},shi_one_two_result1: function(){return result_all(this.shi_one,this.shi_two,0,5)},shi_three_two_result1: function(){return result_all(this.shi_three,this.shi_two,5,10)},shi_one_three_result2: function(){return result_all(this.shi_one,this.shi_three,0,5)},shi_two_three_result2: function(){return result_all(this.shi_two,this.shi_three,5,10)},shi_two_one_result3: function(){return result_all(this.shi_two,this.shi_one,0,5)},shi_three_one_result3: function(){return result_all(this.shi_three,this.shi_one,5,10)},shi_two_three_result4: function(){return result_all(this.shi_two,this.shi_three,0,5)},shi_one_three_result4: function(){return result_all(this.shi_one,this.shi_three,5,10)},shi_three_one_result5: function(){return result_all(this.shi_three,this.shi_one,0,5)},shi_two_one_result5: function(){return result_all(this.shi_two,this.shi_one,5,10)},shi_three_two_result6: function(){return result_all(this.shi_three,this.shi_two,0,5)},shi_one_two_result6: function(){return result_all(this.shi_one,this.shi_two,5,10)},wei_one_two_split1: function(){return split_all(this.wei_one,this.wei_two,0,5)},wei_three_two_split1: function(){return split_all(this.wei_three,this.wei_two,5,10)},wei_one_three_split2: function(){return split_all(this.wei_one,this.wei_three,0,5)},wei_two_three_split2: function(){return split_all(this.wei_two,this.wei_three,5,10)},wei_two_one_split3: function(){return split_all(this.wei_two,this.wei_one,0,5)},wei_three_one_split3: function(){return split_all(this.wei_three,this.wei_one,5,10)},wei_two_three_split4: function(){return split_all(this.wei_two,this.wei_three,0,5)},wei_one_three_split4: function(){return split_all(this.wei_one,this.wei_three,5,10)},wei_three_one_split5: function(){return split_all(this.wei_three,this.wei_one,0,5)},wei_two_one_split5: function(){return split_all(this.wei_two,this.wei_one,5,10)},wei_three_two_split6: function(){return split_all(this.wei_three,this.wei_two,0,5)},wei_one_two_split6: function(){return split_all(this.wei_one,this.wei_two,5,10)},wei_one_two_result1: function(){return result_all(this.wei_one,this.wei_two,0,5)},wei_three_two_result1: function(){return result_all(this.wei_three,this.wei_two,5,10)},wei_one_three_result2: function(){return result_all(this.wei_one,this.wei_three,0,5)},wei_two_three_result2: function(){return result_all(this.wei_two,this.wei_three,5,10)},wei_two_one_result3: function(){return result_all(this.wei_two,this.wei_one,0,5)},wei_three_one_result3: function(){return result_all(this.wei_three,this.wei_one,5,10)},wei_two_three_result4: function(){return result_all(this.wei_two,this.wei_three,0,5)},wei_one_three_result4: function(){return result_all(this.wei_one,this.wei_three,5,10)},wei_three_one_result5: function(){return result_all(this.wei_three,this.wei_one,0,5)},wei_two_one_result5: function(){return result_all(this.wei_two,this.wei_one,5,10)},wei_three_two_result6: function(){return result_all(this.wei_three,this.wei_two,0,5)},wei_one_two_result6: function(){return result_all(this.wei_one,this.wei_two,5,10)}}
        })
    </script>
</body>
</html>